#!/bin/bash

PROFILE=$ENV
if [[ "$PROFILE" == "dev" ]]; then
  echo "dev"
  java -Duser.timezone=GMT+08 -jar h5-red.jar --spring.profiles.active=dev
elif [[ "$PROFILE" == "test" ]]; then
  echo "test"
  java -Duser.timezone=GMT+08 -jar h5-red.jar --spring.profiles.active=test
elif [[ "$PROFILE" == "prod" ]]; then
  echo "prod"
  java -Duser.timezone=GMT+08 -jar h5-red.jar --spring.profiles.active=prod
fi

docker run -itd -p 6379:6379 --name redis -v /data/redis/data:/data --restart always redis:5.0.14 --requirepass 6APcs213qhL5N9Qi6ATs8kOM7mnkKuDLyEE
